require(["core", "jQuery", "coAjax"], function(jSouper, $, coAjax) {
	App.set("$Event.admin.add_news", function() {
		var news_title = App.get("$Cache.news.title");
		var news_author = App.get("$Cache.news.author");
		var news_content = App.get("$Cache.news.content");
		coAjax.post(appConfig.admin.add_news, {
			title: news_title,
			author: news_author,
			content: news_content
		}, function(result) {
			alert("success", "动态添加成功");
			//清空缓存
			App.set("$Cache.news", {});
		}, function(errorCode, xhr, errorMsg) {
			alert("error", errorMsg);
		});

	});
});